package com.waves.task.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.waves.core.web.domain.entities.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * @author dlw
 * @since 2024-09-21
 */
@ApiModel(value = "任务评论表", description = "")
@TableName("task_comment")
@Data
@Accessors(chain = true)
public class TaskComment extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 任务帖子id
     */
    private Long taskId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论点赞数
     */
    private Long likedNum;

    /**
     * 回复的任务评论id
     */
    private Long replyId;

    /**
     * 评论拥有人id
     */
    private Long userId;

    /**
     * 评论用户头像
     */
    private String userAvatar;

    /**
     * 图片地址
     */
    private String imgUrl;

    /**
     * 0普通评论1完成情况评论
     */
    private String type;

}
